package com.qf.blog.service;

import com.qf.blog.core.servise.IBaseService;
import com.qf.blog.entity.UserEntity;

/**
 * @author zyt
 * @version 1.0
 */
public interface UserService extends IBaseService<UserEntity> {
    /**
     *注册的方法
     * @param userEntity
     * @throws Exception
     */
    void register(UserEntity userEntity) throws  Exception;

    /**
     *登录的方法
     * @param username
     * @param password
     * @return
     * @throws Exception
     */
    UserEntity login(String username,String password)  throws Exception;

    /**
     *激活码
     * @param activationCode
     * @return
     */
    UserEntity byActivationCode(String activationCode) throws Exception;
}
